package com.example.thread;

public class ThreadMain {
    public static void main(String[] agrs){
//        MyThread myThread = new MyThread();
//        myThread.start();
//        System.out.println("主线程"+ Thread.currentThread().getClass());
        MyThreadImpl myThread = new MyThreadImpl();
        new Thread(myThread,"myThread").start();
        System.out.println("主线程"+ Thread.currentThread().getClass());
    }
}
